package com.haiyangwang1.lesson12.ex1;

import java.util.Scanner;

public class Person {
    String personName;
    int personFist;
    public int showPersonFist(){
        Scanner input=new Scanner(System.in);
        System.out.println("请输入你的名字：");
        personName=input.next();
        System.out.println("你的出拳是：");
        personFist=input.nextInt();
        String personFistName="";
        switch (personFist){
            case 1:
                personFistName="剪刀";
                System.out.println("你出的是"+personFistName);
                break;
            case 2:
                personFistName="石头";
                System.out.println("你出的是"+personFistName);
                break;
            case 3:
                personFistName="布";
                System.out.println("你出的是"+personFistName);
                break;
        }
        return personFist;
    }
}
